<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 数组去重 
        // [1,1,1,2,2,3,4,5,6,3,4,2,4,1,] ---> [1,2,3,4,5,6]
        let arr =  [1,1,1,2,2,3,4,5,6,3,4,2,4,1,]
        // 实际工作中去重的方法
        let s1 = new Set(arr)
        let brr = Array.from(s1)
        console.log(brr)
        
    </script>
</head>

<body>

</body>

</html>